﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ChanTaiApi
{
    class AutoDisable : IDisposable
    {
        private readonly Control _control;
        public AutoDisable(Control cl)
        {
            _control = cl;
            _control.Enabled = false;
        }
        public void Dispose()
        {
            _control.Enabled = true;
        }
    }
}
